﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="EmpContractAdd.aspx.cs" Inherits="UI.ModEmployee.EmpContractAdd" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>合同信息管理</title>
      <link rel="stylesheet" type="text/css" href="../Styles/BaseStyle.css" />
       <script type="text/javascript" src="../JS/jsFunction.js"></script>
    <script src="../JS/calendar.js" type="text/javascript"></script>
           
    <style type="text/css">
        td
        {
            height: 27px;
        }
    </style>
</head>
<body onload="window.document.forms[0].txtEmpCode.focus();">
    <form id="form1" runat="server">
   <br />
    &nbsp;<p style="text-align: center; font-size: large;">
        <strong>合同信息管理</strong></p>
    <br />
    <table style="width: 80%;" align="center" class="td">
        <tr>
            <td>
                员工编号:
            </td>
            <td>
                <asp:TextBox ID="txtEmpCode" runat="server" CssClass="InputCss" Width="100px"
                    AutoPostBack="True" OnTextChanged="txtEmpCode_TextChanged" MaxLength="20"></asp:TextBox>
                    <a href="javascript:ShowLink('ZipSeaForIn.aspx',880,550)"><img src="../Images/Search.gif" alt="搜索" width="27" height="12" border="0" /></a>
                <asp:RequiredFieldValidator ID="rf1" runat="server" 
                    ControlToValidate="txtEmpCode" ErrorMessage="必填" ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
            <td>
                员工姓名:
            </td>
            <td>
                <asp:TextBox ID="txtEmpName" runat="server" CssClass="InputCss" Width="100px" 
                    TabIndex="1" MaxLength="20"></asp:TextBox>
            </td>
          
        </tr>
        <tr>
          <td>
                部门:
            </td>
            <td>
                <asp:TextBox ID="txtDeptName" runat="server" CssClass="InputCss" Width="100px" 
                    TabIndex="2" MaxLength="20"></asp:TextBox>
            </td>
            
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            </tr>
            <tr>
            <td>
                合同编号:
            </td>
            <td>
                <asp:TextBox ID="txtContractNo" runat="server"  CssClass="InputCss"
                    Width="100px" TabIndex="5"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rf2" runat="server" 
                    ControlToValidate="txtContractNo" ErrorMessage="必填" ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
            <td>
                合同类型:</td>
            <td>
                <asp:DropDownList ID="ddlTypeID" CssClass="InputCss" Width="100px" 
                    runat="server" TabIndex="4">
              
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td>
                合同名称:</td>
            <td>
                 <asp:TextBox ID="txtContractName" runat="server" CssClass="InputCss" Width="100px" 
                     TabIndex="6" MaxLength="8"></asp:TextBox>
                 <asp:RequiredFieldValidator ID="rf3" runat="server" 
                     ControlToValidate="txtContractName" ErrorMessage="必填" ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
            <td>
                
                签订日期:</td>
            <td>
                
                <asp:TextBox ID="txtMakeTime" runat="server" CssClass="InputCss" Width="100px"   maxlength="10" onclick="setday(this,false)" onkeypress="return validateKey(this,false, getkeyCode(event));" style="ime-mode:Disabled;" 
                    TabIndex="11"></asp:TextBox>
                
                <asp:RequiredFieldValidator ID="rf4" runat="server" 
                    ControlToValidate="txtMakeTime" ErrorMessage="必填" ForeColor="Red"></asp:RequiredFieldValidator>
                
            </td>
            </tr>
            <tr>
            <td>
                生效日期:
             </td>
            <td>
                
                <asp:TextBox ID="txtBeginTime" runat="server"   maxlength="10" onclick="setday(this,false)" onkeypress="return validateKey(this,false, getkeyCode(event));" style="ime-mode:Disabled;" CssClass="InputCss" Width="100px" 
                    TabIndex="10"></asp:TextBox>
                
                <asp:RequiredFieldValidator ID="rf5" runat="server" 
                    ControlToValidate="txtBeginTime" ErrorMessage="必填" ForeColor="Red"></asp:RequiredFieldValidator>
                
            </td>
            <td>
                
                失效日期: 
                            
            </td>
            <td>
                
                <asp:TextBox ID="txtEndTime" runat="server"   maxlength="10" onclick="setday(this,false)" onkeypress="return validateKey(this,false, getkeyCode(event));" style="ime-mode:Disabled;" CssClass="InputCss" Width="100px" 
                    TabIndex="11"></asp:TextBox>
                
                <asp:RequiredFieldValidator ID="rf6" runat="server" 
                    ControlToValidate="txtEndTime" ErrorMessage="必填" ForeColor="Red"></asp:RequiredFieldValidator>
                
            </td>
        </tr>
        <tr>
            <td>
                内容:</td>
            <td colspan="3">
                <asp:TextBox ID="txtContractContent" runat="server" CssClass="InputCss" 
                    Width="450px" TabIndex="13"
                    Rows="10" TextMode="MultiLine" MaxLength="3000"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                备注:
             </td>
            <td colspan="3">
                <asp:TextBox ID="txtMemo" runat="server" CssClass="InputCss" Width="450px" TabIndex="13"
                    Rows="3" TextMode="MultiLine" MaxLength="500"></asp:TextBox>
            </td>
        </tr>
    </table>
    <p style="text-align: center;">
        <asp:Button ID="btnAdd" runat="server" Text="增加" OnClick="btnAdd_Click" 
            TabIndex="14" />
        &nbsp;<asp:Button ID="btnUpdate" runat="server" Text="更新" 
            OnClick="btnUpdate_Click" TabIndex="15" />
        &nbsp;<asp:Button ID="btnEnd" runat="server" onclick="btnEnd_Click" Text="失效" 
            TabIndex="17" />
        &nbsp;<asp:Button ID="btnDelete" runat="server" Text="删除" 
            OnClick="btnDelete_Click"  OnClientClick="return confirm('确定要删除吗?\n');" TabIndex="18" />
        &nbsp;<asp:Button ID="btnClose" runat="server" onclick="btnClose_Click" Text="关闭" 
            TabIndex="19" CausesValidation="False" />
    </p>
    </form>
</body>
</html>
